using System;
using System.Runtime.Serialization;
using System.Collections.Generic;

namespace CoreEx.Samples.DomainModel
{

	/// <summary>
	/// A class that represents Categories.
	/// </summary>
	[Serializable]
	public class Category
	{
		#region Private Members

		private IList<Product> _products = new List<Product>();

		#endregion

		/// <summary>
		/// Gets or sets the Category ID
		/// </summary>
		public virtual int CategoryID { get; set; }

		/// <summary>
		/// Gets or sets the Category Name
		/// </summary>
		public virtual string CategoryName { get; set; }

		/// <summary>
		/// Gets or sets the Description
		/// </summary>
		public virtual string Description { get; set; }

		/// <summary>
		/// Gets or sets the Picture
		/// </summary>
		public virtual byte[] Picture { get; set; }

		/// <summary>
		/// Gets the Products
		/// </summary>
		public IList<Product> Products 
		{
			get { return _products; }
		}
	}
}
